package ec_si_template;

import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;

public class UtilCSV {
	
	public static void writeCSV(String filenane, ArrayList<Double> testOutputCalculatedValues) {
		
		FileWriter writer;
		
		try {
			
			writer = new FileWriter(filenane+".csv");
			
			for (int i = 0; i < testOutputCalculatedValues.size() ; i++) {
				writer.append(""+testOutputCalculatedValues.get(i));					
				writer.append('\n');
			}
			
			writer.flush();
		    writer.close();
		    
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		
	}
}
